<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Picture-Manager: FilledRectangle Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Picture-Manager
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_filled_rectangle.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_filled_rectangle-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">FilledRectangle Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Describes a filled rectangle.  
 <a href="class_filled_rectangle.html#details">More...</a></p>

<p><code>#include &lt;FilledRectangle.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for FilledRectangle:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_filled_rectangle.png" usemap="#FilledRectangle_map" alt=""/>
  <map id="FilledRectangle_map" name="FilledRectangle_map">
<area href="class_rectangle.html" title="Describes a Rectangle (holds its dimensions and gets position from Shape)" alt="Rectangle" shape="rect" coords="0,112,99,136"/>
<area href="class_shape.html" title="Describes a Shape (holds position and color of the shape)" alt="Shape" shape="rect" coords="0,56,99,80"/>
<area href="class_object.html" title="Common Baseclass for all other classes." alt="Object" shape="rect" coords="0,0,99,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac7fb959255c615596ead30b2039eb4cc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_filled_rectangle.html#ac7fb959255c615596ead30b2039eb4cc">FilledRectangle</a> (<a class="el" href="struct_t_position.html">TPosition</a> const &amp;pos, <a class="el" href="struct_t_size.html">TSize</a> const &amp;size, std::string const &amp;color)</td></tr>
<tr class="memdesc:ac7fb959255c615596ead30b2039eb4cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">CTor of <a class="el" href="class_filled_rectangle.html" title="Describes a filled rectangle.">FilledRectangle</a>.  <a href="#ac7fb959255c615596ead30b2039eb4cc"></a><br/></td></tr>
<tr class="separator:ac7fb959255c615596ead30b2039eb4cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_rectangle"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_rectangle')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_rectangle.html">Rectangle</a></td></tr>
<tr class="memitem:a5406b289aaf147589cfa5c78e1af6159 inherit pub_methods_class_rectangle"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#a5406b289aaf147589cfa5c78e1af6159">Rectangle</a> (<a class="el" href="struct_t_position.html">TPosition</a> const &amp;pos, <a class="el" href="struct_t_size.html">TSize</a> const &amp;size, std::string const &amp;color)</td></tr>
<tr class="memdesc:a5406b289aaf147589cfa5c78e1af6159 inherit pub_methods_class_rectangle"><td class="mdescLeft">&#160;</td><td class="mdescRight">CTor of <a class="el" href="class_rectangle.html" title="Describes a Rectangle (holds its dimensions and gets position from Shape)">Rectangle</a>.  <a href="#a5406b289aaf147589cfa5c78e1af6159"></a><br/></td></tr>
<tr class="separator:a5406b289aaf147589cfa5c78e1af6159 inherit pub_methods_class_rectangle"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaa2bbc0e5c831e0e596b75e0f5a1644 inherit pub_methods_class_rectangle"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#acaa2bbc0e5c831e0e596b75e0f5a1644">WriteShape</a> (std::ostream &amp;stream)</td></tr>
<tr class="memdesc:acaa2bbc0e5c831e0e596b75e0f5a1644 inherit pub_methods_class_rectangle"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a circle to ostream.  <a href="#acaa2bbc0e5c831e0e596b75e0f5a1644"></a><br/></td></tr>
<tr class="separator:acaa2bbc0e5c831e0e596b75e0f5a1644 inherit pub_methods_class_rectangle"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_shape"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_shape')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_shape.html">Shape</a></td></tr>
<tr class="memitem:ac3b9fc48965274893f25b18aa14ba665 inherit pub_methods_class_shape"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shape.html#ac3b9fc48965274893f25b18aa14ba665">~Shape</a> ()</td></tr>
<tr class="memdesc:ac3b9fc48965274893f25b18aa14ba665 inherit pub_methods_class_shape"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of <a class="el" href="class_shape.html" title="Describes a Shape (holds position and color of the shape)">Shape</a>.  <a href="#ac3b9fc48965274893f25b18aa14ba665"></a><br/></td></tr>
<tr class="separator:ac3b9fc48965274893f25b18aa14ba665 inherit pub_methods_class_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#aa3e791419d84c4c346ef9499513b8e00">~Object</a> ()</td></tr>
<tr class="memdesc:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of the <a class="el" href="class_object.html" title="Common Baseclass for all other classes.">Object</a> class.  <a href="#aa3e791419d84c4c346ef9499513b8e00"></a><br/></td></tr>
<tr class="separator:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a85934654e069ecb07c2d5022346f5d0c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_filled_rectangle.html#a85934654e069ecb07c2d5022346f5d0c">DoWrite</a> (std::ostream &amp;stream)</td></tr>
<tr class="memdesc:a85934654e069ecb07c2d5022346f5d0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a rectangle to ostream.  <a href="#a85934654e069ecb07c2d5022346f5d0c"></a><br/></td></tr>
<tr class="separator:a85934654e069ecb07c2d5022346f5d0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#a86a84ed2d1207e5f8827165ac2941106">deleteObject</a> (<a class="el" href="class_object.html">Object</a> *obj)</td></tr>
<tr class="memdesc:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees the memory used by obj.  <a href="#a86a84ed2d1207e5f8827165ac2941106"></a><br/></td></tr>
<tr class="separator:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_rectangle"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_rectangle')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_rectangle.html">Rectangle</a></td></tr>
<tr class="memitem:a41af397bbbb6e3fefe657d26e253389b inherit pro_attribs_class_rectangle"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#a41af397bbbb6e3fefe657d26e253389b">mHeight</a></td></tr>
<tr class="memdesc:a41af397bbbb6e3fefe657d26e253389b inherit pro_attribs_class_rectangle"><td class="mdescLeft">&#160;</td><td class="mdescRight">the height of a rectangle  <a href="#a41af397bbbb6e3fefe657d26e253389b"></a><br/></td></tr>
<tr class="separator:a41af397bbbb6e3fefe657d26e253389b inherit pro_attribs_class_rectangle"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fca882e2904cd27d5432e86dac6a879 inherit pro_attribs_class_rectangle"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#a5fca882e2904cd27d5432e86dac6a879">mWidth</a></td></tr>
<tr class="memdesc:a5fca882e2904cd27d5432e86dac6a879 inherit pro_attribs_class_rectangle"><td class="mdescLeft">&#160;</td><td class="mdescRight">the width of a rectangle  <a href="#a5fca882e2904cd27d5432e86dac6a879"></a><br/></td></tr>
<tr class="separator:a5fca882e2904cd27d5432e86dac6a879 inherit pro_attribs_class_rectangle"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Describes a filled rectangle. </p>
<p>The class <a class="el" href="class_filled_rectangle.html" title="Describes a filled rectangle.">FilledRectangle</a> implements the DoWrite function for a filled rectangle. It provides the tag for filling the rectangle with the color given. In the specification it was an ambiguous statement (leaving out the fill tag means filling it out with black). Assumption: it should be filled out with the color given. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac7fb959255c615596ead30b2039eb4cc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">FilledRectangle::FilledRectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_position.html">TPosition</a> const &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_t_size.html">TSize</a> const &amp;&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>CTor of <a class="el" href="class_filled_rectangle.html" title="Describes a filled rectangle.">FilledRectangle</a>. </p>
<p>This constructor is needed by the ShapeFactory that it is able to create an object of this class. All three parameters are set in the class <a class="el" href="class_rectangle.html" title="Describes a Rectangle (holds its dimensions and gets position from Shape)">Rectangle</a> (<a class="el" href="class_rectangle.html" title="Describes a Rectangle (holds its dimensions and gets position from Shape)">Rectangle</a> constructor is called). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pos</td><td>The position of the rectangle on a picture. </td></tr>
    <tr><td class="paramname">size</td><td>The dimensions of a rectangle. </td></tr>
    <tr><td class="paramname">color</td><td>The color a rectangle has. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a85934654e069ecb07c2d5022346f5d0c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void FilledRectangle::DoWrite </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write a rectangle to ostream. </p>
<p>Write a rectangle (filled or transparent) to ostream. (abstract method) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The stream where output is written to. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_rectangle.html#a1119c1a7cff702fc644516b3f2464ef8">Rectangle</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_filled_rectangle.html">FilledRectangle</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
